home *** CD-ROM | disk | FTP | other *** search
- var BookmarksShareUtils =
- {
- _coop: null,
-
- getCoopObject: function(BMDS, gResource)
- {
- if (this._coop == null)
- this._coop = Components.classes['@flock.com/singleton;1']
- .getService(Components.interfaces.flockISingleton)
- .getSingleton('chrome://browser/content/flock/common/load-faves-coop.js')
- .wrappedJSObject;
- return this._coop.get_from_resource (gResource);
- }
- }
-
- function Bookmark() {
- this.URL = "";
- this.name = "";
- this.description = "";
- this.tags = "";
- this.time = "";
- }
-
- Bookmark.prototype = {
- getInterfaces: function (count) {
- var interfaceList = [Components.interfaces.flockIBookmark, Components.interfaces.nsIClassInfo];
- count.value = interfaceList.length;
- return interfaceList;
- },
- QueryInterface: function (iid) {
- if (!iid.equals(Components.interfaces.flockIBookmark))
- throw Components.results.NS_ERROR_NO_INTERFACE;
- return this;
- }
- }
-